package com.entity;

import java.sql.Date;

/*
 *
 *@author XCH
 *@date2024 - 11 - 26
 *
 */
public class User {
    private int id;
    private String username;
    private String password;
    private String level;
    private String image;
    private String phone;
    private String email;
    private Date time;
    private int status;

    public User() {
    }

    public User(int id, String username, String password, String level, String image, String phone, String email, Date time, int status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.level = level;
        this.image = image;
        this.phone = phone;
        this.email = email;
        this.time = time;
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", level='" + level + '\'' +
                ", image='" + image + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", time=" + time +
                ", status=" + status +
                '}';
    }
}
